package com.aspire.moss.portal.view;

import com.aspire.moss.portal.R;

import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.FrameLayout;

/**
 * 整个桌面的总布局
 * @author Administrator
 *
 */
public class DragLayer extends FrameLayout {

	Context mContext;
	
	Bitmap wallpaper;
	
	public DragLayer(Context context, AttributeSet attrs){
		this(context, attrs, 0);
	}
	
	public DragLayer(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		 TypedArray a = context.obtainStyledAttributes(attrs,R.styleable.DragLayer,
                 defStyle, 0);
		 Drawable drawable = a.getDrawable(R.styleable.DragLayer_wallpaper);
		 wallpaper = null == drawable ? null :((BitmapDrawable)drawable).getBitmap();
	}

	@Override
	protected void onDraw(Canvas canvas) {
		super.onDraw(canvas);
	}
	

}
